<template>
  <div id="app">
    <!-- <transition name="van-fade"> -->
      <keep-alive>
        <router-view/>
      </keep-alive>
    <!-- </transition> -->
  </div>
</template>

<script>
export default {
  name: 'App',
  mounted () {
    //暴露方法给window，这样vue以外的首页可以js调用
    window['apiReady'] = (flag)=>{
      this.$G.apiReady = true
    };
  },
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  /* margin-top: 60px; */
}
</style>
